Semi-log plot
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
top
In science and engineering, a semi-log plot/graph or semi-logarithmic plot/graph has one axis on a logarithmic scale, the other on a linear scale. It is useful for data with exponential relationships, where one variable covers a large range of values.cite-ref-1[1]
All equations of the form y = Ξ» a Ξ³ x {\displaystyle y=\lambda a^{\gamma x}} form straight lines when plotted semi-logarithmically, since taking logs of both sides gives
log a β‘ y = Ξ³ x + log a β‘ Ξ» . {\displaystyle \log _{a}y=\gamma x+\log _{a}\lambda .}
This is a line with slope Ξ³ {\displaystyle \gamma } and log a β‘ Ξ» {\displaystyle \log _{a}\lambda } vertical intercept. The logarithmic scale is usually labeled in base 10; occasionally in base 2:
log β‘ ( y ) = ( Ξ³ log β‘ ( a ) ) x + log β‘ ( Ξ» ) . {\displaystyle \log(y)=(\gamma \log(a))x+\log(\lambda ).}
A logβlinear (sometimes logβlin) plot has the logarithmic scale on the y-axis, and a linear scale on the x-axis; a linearβlog (sometimes linβlog) is the opposite. The naming is outputβinput (yβx), the opposite order from (x, y).
On a semi-log plot the spacing of the scale on the y-axis (or x-axis) is proportional to the logarithm of the number, not the number itself. It is equivalent to converting the y values (or x values) to their log, and plotting the data on linear scales. A logβlog plot uses the logarithmic scale for both axes, and hence is not a semi-log plot.
Contents
β’ Equations
β’ Microbial growth
β’ See also
β’ References
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Equations
The equation of a line on a linearβlog plot, where the abscissa axis is scaled logarithmically (with a logarithmic base of n), would be
F ( x ) = m log n β‘ ( x ) + b . {\displaystyle F(x)=m\log _{n}(x)+b.\,}
The equation for a line on a logβlinear plot, with an ordinate axis logarithmically scaled (with a logarithmic base of n), would be:
log n β‘ ( F ( x ) ) = m x + b {\displaystyle \log _{n}(F(x))=mx+b}
F ( x ) = n m x + b = ( n m x ) ( n b ) . {\displaystyle F(x)=n^{mx+b}=(n^{mx})(n^{b}).}
Finding the function from the semiβlog plot
Linearβlog plot
On a linearβlog plot, pick some fixed point (x0, F0), where F0 is shorthand for F(x0), somewhere on the straight line in the above graph, and further some other arbitrary point (x1, F1) on the same graph. The slope formula of the plot is:
m = F 1 β F 0 log n β‘ ( x 1 / x 0 ) {\displaystyle m={\frac {F_{1}-F_{0}}{\log _{n}(x_{1}/x_{0})}}}
which leads to
F 1 β F 0 = m log n β‘ ( x 1 / x 0 ) {\displaystyle F_{1}-F_{0}=m\log _{n}(x_{1}/x_{0})}
or
F 1 = m log n β‘ ( x 1 / x 0 ) + F 0 = m log n β‘ ( x 1 ) β m log n β‘ ( x 0 ) + F 0 {\displaystyle F_{1}=m\log _{n}(x_{1}/x_{0})+F_{0}=m\log _{n}(x_{1})-m\log _{n}(x_{0})+F_{0}}
which means that F ( x ) = m log n β‘ ( x ) + c o n s t a n t {\displaystyle F(x)=m\log _{n}(x)+\mathrm {constant} }
In other words, F is proportional to the logarithm of x times the slope of the straight line of its linβlog graph, plus a constant. Specifically, a straight line on a linβlog plot containing points (F0, x0) and (F1, x1) will have the function:
F ( x ) = ( F 1 β F 0 ) [ log n β‘ ( x / x 0 ) log n β‘ ( x 1 / x 0 ) ] + F 0 = ( F 1 β F 0 ) log x 1 x 0 β‘ ( x x 0 ) + F 0 {\displaystyle F(x)=(F_{1}-F_{0}){\left[{\frac {\log _{n}(x/x_{0})}{\log _{n}(x_{1}/x_{0})}}\right]}+F_{0}=(F_{1}-F_{0})\log _{\frac {x_{1}}{x_{0}}}{\left({\frac {x}{x_{0}}}\right)}+F_{0}}
logβlinear plot
On a logβlinear plot (logarithmic scale on the y-axis), pick some fixed point (x0, F0), where F0 is shorthand for F(x0), somewhere on the straight line in the above graph, and further some other arbitrary point (x1, F1) on the same graph. The slope formula of the plot is:
m = log n β‘ ( F 1 / F 0 ) x 1 β x 0 {\displaystyle m={\frac {\log _{n}(F_{1}/F_{0})}{x_{1}-x_{0}}}}
which leads to
log n β‘ ( F 1 / F 0 ) = m ( x 1 β x 0 ) {\displaystyle \log _{n}(F_{1}/F_{0})=m(x_{1}-x_{0})}
Notice that nlogn(F1) = F1. Therefore, the logs can be inverted to find:
F 1 F 0 = n m ( x 1 β x 0 ) {\displaystyle {\frac {F_{1}}{F_{0}}}=n^{m(x_{1}-x_{0})}}
or
F 1 = F 0 n m ( x 1 β x 0 ) {\displaystyle F_{1}=F_{0}n^{m(x_{1}-x_{0})}}
This can be generalized for any point, instead of just F1:
F ( x ) = F 0 n ( x β x 0 x 1 β x 0 ) log n β‘ ( F 1 / F 0 ) {\displaystyle F(x)={F_{0}}n^{\left({\frac {x-x_{0}}{x_{1}-x_{0}}}\right)\log _{n}(F_{1}/F_{0})}}
Real-world examples
Phase diagram of water
2009 "swine flu" progression
While ten is the most common base, there are times when other bases are more appropriate, as in this example:
Notice that while the horizontal (time) axis is linear, with the dates evenly spaced, the vertical (cases) axis is logarithmic, with the evenly spaced divisions being labelled with successive powers of two. The semi-log plot makes it easier to see when the infection has stopped spreading at its maximum rate, i.e. the straight line on this exponential plot, and starts to curve to indicate a slower rate. This might indicate that some form of mitigation action is working, e.g. social distancing.
Microbial growth
In biology and biological engineering, the change in numbers of microbes due to asexual reproduction and nutrient exhaustion is commonly illustrated by a semi-log plot. Time is usually the independent axis, with the logarithm of the number or mass of bacteria or other microbe as the dependent variable. This forms a plot with four distinct phases, as shown below.
See also
β’ Nomograph, more complicated graphs
β’ Nonlinear regression#Transformation, for converting a nonlinear form to a semi-log form amenable to non-iterative calculation
β’ Logβlog plot
References
cite-note-11. β (1) citerefbourneBourne, M. "Graphs on Logarithmic and Semi-Logarithmic Paper". Interactive Mathematics. www.intmath.com. Archived from the original on August 6, 2021. Retrieved October 26, 2021. (2) citerefbourne2007Bourne, Murray (January 25, 2007). "Interesting semi-logarithmic graph β YouTube Traffic Rank". SquareCirclez: The IntMath blog. www.intmath.com. Archived from the original on February 26, 2021. Retrieved October 26, 2021.